
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;




public class DrawTest extends Frame {

	private Container shapeContainer;
	

	
	public DrawTest() throws HeadlessException {
		super();
	    shapeContainer = new ShapeContainer();
	    add(shapeContainer, BorderLayout.CENTER);
	    
	    WBRectangle r = new WBRectangle(200,100, 40, 25);
	    shapeContainer.add(r);
	}



	public static void main(String arg[]) {
		DrawTest f = new DrawTest();
		f.setBounds(50, 50, 500, 500);
		f.setVisible(true);
		f.addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent we) {
				System.exit(0);
			}
		});
	}
}
